import gui from '@/lib/gui.js';
import https from '@/lib/https.js';
import config from '@/lib/config.js';
import dateUtil from '@/lib/dateutil.js';

const _clickAudioContext = uni.createInnerAudioContext();
const clickAudioUrl = 'https://dreamres.4dimkeeper.com/dict/audioclick.mp3';
const turnSwiperAudioUrl = 'https://dreamres.4dimkeeper.com/dict/audio-swiper.mp3';
const scoreGotAudioUrl = 'https://dreamres.4dimkeeper.com/dict/audio-score.mp3';
const awardGotAudioUrl = 'https://dreamres.4dimkeeper.com/dict/audio-award-v2.mp3';
const cameraAudioUrl = 'https://dreamres.4dimkeeper.com/dict/audio-camera.mp3';
const celebrateAudioUrl = 'https://dreamres.4dimkeeper.com/dict/audio-celebrate-v2.mp3';
const taskCompleteAudioUrl = 'https://dreamres.4dimkeeper.com/dict/audio-taskcomplete-v2.mp3';

function playClick() {
  if (_clickAudioContext.paused){
    _clickAudioContext.src = clickAudioUrl;
	_clickAudioContext.play();
  }else{
    _clickAudioContext.stop();
    _clickAudioContext.play();
  }
}

export default{
	playClick
}
